const express = require('express');
const app = express();
const path = require('path');

//可以指定多个静态文件的目录
app.use(express.static(path.join(__dirname,'static')))
app.use(express.static(path.join(__dirname,'public')))

//虚拟目录
app.use('/file',express.static(path.join(__dirname,'public')))

app.listen(8080,() => {
    console.log(' === >','running...');
})